<?php
include('../includes/common.php');
if (isset($_REQUEST['token'])) {
    $token = $_REQUEST['token'];
    $rs = $conn->query("select * from user_list where token = '$token'");
    if ($rs->num_rows == 0) {
        exit(json_encode(['code' => 202, 'msg' => '无效token'], JSON_UNESCAPED_UNICODE));
    }
    $ures = $rs->fetch_assoc();
    $uid = $ures['uid'];
	exit(json_encode(['code' => 200, 'msg' => '敬请期待……'], JSON_UNESCAPED_UNICODE));

} else {
    exit(json_encode(['code' => 201, 'msg' => '缺少token参数'], JSON_UNESCAPED_UNICODE));
}
?>